# create_vue_files.ps1
$template = @"
<script setup lang="ts">
import { useRoute } from "vue-router";
const route = useRoute();
</script>

<template>
  {{ route.query }}
</template>

<style scoped>
</style>
"@

"customer/LoginLog.vue","driver/DriverSettings.vue","driver/FaceRecognition.vue","driver/LoginLog.vue", "customer/CustomerInfo.vue","coupon/CouponDetail.vue","coupon/CouponList.vue","coupon/CustomerCoupon.vue"|
  ForEach-Object { $template | Out-File -FilePath $_ -Encoding utf8 }

Write-Host "✅ Vue 文件已成功创建！"